package com.mach.platform.repository;

import com.mach.platform.domain.base.Organization;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author Anonymous
 * @Description: 组织架构 数据库
 * @Package: com.mach.platform.com.mach.platform.repository
 * @time 2018/04/12 17:44
 */

@Repository
public interface OrgRepo extends BaseRepository<Organization> {

	/**
	 * 查询 指定pid的子集
	 * @param id  指定pid
	 * @return
	 */
	List<Organization> findByPid (Long id);

}
